package com.wanmait.schedule.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.pagehelper.PageInfo;
import com.wanmait.schedule.entity.Apply;
import com.wanmait.schedule.entity.Company;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wanmait.schedule.entity.CompanyType;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 * 企业表 服务类
 * </p>
 *
 * @author wanmait
 * @since 2022-03-02
 */
public interface CompanyService extends IService<Company> {
    PageInfo<Company> findPage(Integer pageNum, Integer papgeSize);//分页找到所有的企业

    Page<Company> companys(Integer Page, Integer Number);//分页找到所有的企业

    List<Company> selectCompang(String ketword);//通过关键字找到企业（是个数组）

    Company initData (Integer companyId);
    List<CompanyType> initCompanyType();
    Boolean companyEdit(Company company, MultipartFile file, Integer companyId);

}
